package com.sf.osms.dep.webservice.email;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Polymorphism;
import org.hibernate.annotations.PolymorphismType;

import com.sf.novatar.base.domain.LongIdBean;
/**
 * 邮件发送实体类
 * @author sfhq1469
 *
 */
public class EmailSender extends LongIdBean implements Serializable, Cloneable {

	private static final long serialVersionUID = 5077540748946006976L;

	
	private Long id;
	/***
	 * 邮件标题
	 */
	
	private String subject;// 邮件标题
	/***
	 * 邮件内容
	 */
	
	private String content;// 邮件内容
	/***
	 *收件人 
	 */

	private String defReceive;// 收件人
	/***
	 *  抄送人
	 */

	private String defReceiveCc;// 抄送人
	/***
	 * 密送人
	 */

	private String defReceiveBcc;// 密送人
	/***
	 * 邮件状态
	 */

	private int status;// 邮件状态

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDefReceive() {
		return defReceive;
	}

	public void setDefReceive(String defReceive) {
		this.defReceive = defReceive;
	}

	public String getDefReceiveCc() {
		return defReceiveCc;
	}

	public void setDefReceiveCc(String defReceiveCc) {
		this.defReceiveCc = defReceiveCc;
	}

	public String getDefReceiveBcc() {
		return defReceiveBcc;
	}

	public void setDefReceiveBcc(String defReceiveBcc) {
		this.defReceiveBcc = defReceiveBcc;
	}

	@Override
	public String toString() {
		return "EmailSender [id=" + id + ", subject=" + subject + ", content="
				+ content + ", defReceive=" + defReceive + ", defReceiveCc="
				+ defReceiveCc + ", defReceiveBcc=" + defReceiveBcc
				+ ", status=" + status + "]";
	}
	
	
}
